package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	UserId         int64  `gorm:"type:int(11);not null;comment:'用户ID'"`
	Avatar         string `gorm:"type:varchar(300);not null;comment:'图片'"`
	ShopName       string `gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Price          int64  `gorm:"type:int(11);not null;comment:'商品价格'"`
	Gender         string `gorm:"type:enum('男','女');not null;comment:'性别'"`
	ShopNavigation string `gorm:"type:varchar(30);not null;comment:'商品导航'"`
	Address        string `gorm:"type:varchar(50);not null;comment:'地址'"`
	Quantity       int64  `gorm:"type:int(11);not null;comment:'数量'"`
	Introduce      string `gorm:"type:varchar(100);not null;comment:'介绍'"`
	Status         string `gorm:"type:enum('已上架','未上架');not null;comment:'状态'"`
	Likes          int64  `gorm:"type:int(11);not null;comment:'点赞'"`
}
